package com.bbcare.comm.enumeration;

/** 
 * @desc: 医院类型
 * @author: liqianlong
 * @date: 20210407
 */ 
public enum HospitalTypeEnum {

    HOSPITAL_INNER(1, "本院"),
    HOSPITAL_OUTER(2, "外院");

    private int value;
    private String name;

    HospitalTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getName(int value) {
        for (HospitalTypeEnum booleanStatus : HospitalTypeEnum.values()) {
            if (booleanStatus.getValue() == value) {
                return booleanStatus.getName();
            }
        }
        return "";
    }
}
